package com.yansu.cloud.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;

/**
 * 避免防止在@CompomentScan扫描路径下，如果放在App所在路径需要配置排除扫描达到自定义ribbon反向代理策略配置
 * 
 * @author 言肃
 * @email yansu_code@126.com
 * @version 1.0
 * @date Jul 26, 2018 12:15:06 PM
 */
@Configuration
@ExcludeFromComponentScan
public class TestConfiguration {

	// @Autowired
	// IClientConfig config;

	@Bean
	public IRule ribbonRule() {
		return new RandomRule();
	}
}
